package com.oop.demo;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/14 17:23
 * @description
 */
public class User {
    //定义用户名
    private String name;
    //定义密码
    private int password;

    public User() {
    }

    public User(String name, int password) {
        this.name = name;
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPassword() {
        return password;
    }

    public void setPassword(int password) {
        this.password = password;
    }
}
